# -*- coding: utf-8 -*-

from __future__ import absolute_import, unicode_literals, print_function

import datetime
from collections import OrderedDict

from jiandan.const import JianDanConst
from jiandan.five import urlencode


class JianDanRequest(object):

    @staticmethod
    def gen_new_100_url():
        """获取new前100条数据 URL
        """

        qs_dict = OrderedDict()
        qs_dict['ie'] = 'utf8'
        return 'http://jandan.net/new?{}'.format(urlencode(qs_dict))
        # return 'http://jandan.net/new'

    @staticmethod
    def gen_new_info_url(url):
        """获取new每条数据 URL
        """
        return url

    @staticmethod
    def gen_ooxx_url():
        """获取new每条数据 URL
        """
        return 'http://jandan.net/ooxx'
